// pages/logo/logo.js
import {Banner} from '../../utils/http'
Page({
    data: {
        image:[],
        show:false,
        autoplay:false
    },
    onLoad: function (options) {
    //轮播图
    Banner().then(res=>{
        console.log(res.data)
        let image=this.data.image
        image=res.data
        let a=image.slice(6,9)
        this.setData({image:a})
      })
    },
    list:function(e){
        let index=e.detail.current
        if(index==2){
            this.setData({show:true})
        }
    },
    login:function(){
        wx.switchTab({
            url: '/pages/index/index',
          })
    },
})